<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="true"%>
<%@page import="java.util.*"%>
<%@page import="tr.com.argela.tap.mot.models.Project"%>
<%@page import="tr.com.argela.tap.mot.models.Module"%>
<%@page import="tr.com.argela.tap.mot.models.TestPoint"%>
<%@page import="tr.com.argela.tap.mot.models.User"%>
<%@page import="tr.com.argela.tap.mot.dao.ProjectDao"%>
<%@page import="tr.com.argela.tap.mot.dao.ModuleDao"%>
<%@page import="tr.com.argela.tap.mot.dao.TestPointDao"%>
<%@page import="tr.com.argela.tap.mot.dao.DbManager"%>
<%@page import="java.sql.*"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
   <html>
<head>

<title>JSP Page</title>
<link rel="stylesheet" type="text/css" href="style/styles.css">
</head>
<body>
 
  <%
     User user = (User)request.getSession().getAttribute("userObject");
     String name = user.getName();
     Long id = user.getId();
%>
  <h4 align="right"><%=name%></h4>
  <h5 align="right"><a href="logout.jsp">Log out</a></h5>
       <dıv> <h1 align="center">MOT</h1><h5 align="center">Memory Of Testing</h5></dıv>

     <div align="left">
        <table align="left"><tr><td>
        <h3><a href="analystModel.jsp?id=<%=id%>">Modules</a></h3></td></tr><tr><td>
        <h3><a href="analystPoint.jsp?id=<%=id%>">Test points</a></h3></td></tr><tr><td>
        <h3><a href="analystCase.jsp?id=<%=id%>">Test Cases</a></h3></td></tr><tr><td>
        <h3><a href="export.jsp?id=<%=id%>">Export Document</a></h3></td></tr>
        </table></div>
       <dıv align="right">

<form action="TestPointServlet">  
<%
if(request.getParameter("id7")==null)
	response.sendRedirect("thisTestPoint2.jsp");

TestPointDao testpointdao = new TestPointDao();
TestPoint testPoint = testpointdao.checkpoint(Long.parseLong((String)request.getParameter("id7")));


%>


<table border="2" align="center">

<tr>
<th align="center" colspan="2">Test Point <%=testPoint.getId()%>'s properties</th>
</tr><tr>
<th>Test Point ID</th>
<td><%=testPoint.getId()%></td>
<tr>
<th>Module Name</th>
<td><%=testPoint.getName()%></td>
</tr><tr>
<th>User Name</th>
<td><%=testPoint.getUser().getName()%></td>
</tr><tr>
<th>Test Point Description</th>
<td><%=testPoint.getDescription()%></td>
</tr><tr>
<th>Module Name</th>
<td><%=testPoint.getModule().getName()%></td>
</tr>

</table>
 <table align="center">
        <tr><td>
	        <h3 align="left"><a href="thistestcase2.jsp?id7=<%=testPoint.getId()%>">Test Cases</a></h3>
	    </td></tr>
	    <tr><td>
	          <h3 align="left"><a href="updatetestpoint2.jsp?id9=<%=testPoint.getId()%>">Update This Test Point</a></h3>
	    </td></tr>
	      <tr><td><h3 align="left"><a href="versionTestPoint2.jsp?id9=<%=testPoint.getId()%>">This Test Point Versions</a></h3>
	    </td></tr>
	    </table></form>
	    </dıv>
</body>
</html>